package com.zgxl.common.es;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * created by byh 2018/01/131
 * description: 全文检索配置
 */
@Component
@PropertySource(value = "classpath:/config/elasticserach.properties", encoding = "utf-8")
@ConfigurationProperties(prefix = "elasticserach")
public class ElasticSearchConf {
    private String host;
    private int port;
    private String clusterName;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }
}